/*
 * Copyright (c) 2009, Jan Pastor. All Rights Reserved.
 */

package sk.jp.jitag.dao.db4o.model;

import sk.jp.jitag.dao.db4o.Column;
import sk.jp.jitag.dao.db4o.BaseEntity;

public class UserNote extends BaseEntity {

    private static final Column _NOTE = new Column("note");

    private String note;

    //----------------------------------------------------------------------

    public UserNote(String note) {
        checkNotNullNotEmpty(_NOTE, note);
        this.note = note;
    }

    public String getNote() {
        return note;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder();
        sb.append("UserNote");
        sb.append("{note='").append(note).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
